package com.xidian.zhiancloud.dao.riskcontrol.riskidenva;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xidian.zhiancloud.model.riskcontrol.TRiskCheckProcessList;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 风险辨识评价计划-流程记录查看
 */
public interface TRiskCheckProcessMapper extends BaseMapper<TRiskCheckProcessList> {

    int insertTRiskCheckProcess
            (@Param("data") List<TRiskCheckProcessList> data);

    TRiskCheckProcessList getByCheProcAndAndTaskAllocatId
         (@Param("companyId") Long companyId,
          @Param("taskAllocatId") String taskAllocatId);
    
    List<TRiskCheckProcessList> getByCheckProcessAndTRiskidentevalsId
        (@Param("companyId") Long companyId,
         @Param("triskidentevalsId") String triskidentevalsId);

    List<TRiskCheckProcessList> getByDepaReviewer
        (@Param("companyId") Long companyId,@Param("userId") String userId);

    List<TRiskCheckProcessList> getBySecurityReviewer
        (@Param("companyId") Long companyId,@Param("userId") String userId);

    List<TRiskCheckProcessList> getByEndReviewer
        (@Param("companyId") Long companyId,@Param("userId") String userId);
    
    int updateTRiskCheckProc(List<TRiskCheckProcessList> list);

    List<TRiskCheckProcessList> getByCheProcAndTRiskidentevalsId
        (@Param("companyId") Long companyId,
         @Param("triskidentevalsId") String triskidentevalsId);

}
